/*
 * @brief:
 * @Author: TzzzT
 * @Date: 2022-05-10 13:59:22
 * @LastEditTime: 2023-05-03 22:54:59
 * @LastEditors: TzzzT
 */
#pragma once
#include "RCS_master.h"
#include "stdio.h"
#include "stdlib.h"


void set_allow_open(bool st);
bool is_allow_open_ble_server(void);

void set_allow_scan_new_slave_flag(bool st);
// set bda是设置底层驱动的bda
void rcs_set_remote_bda(uint8_t equip_sn, bd_addr_t remote_bda);
bool rcs_try_to_open_server(uint8_t equip_sn);
void rcs_close_all_connection(uint8_t equip_sn);
void rcs_try_to_scanning(uint32_t scan_time);
void rcs_stop_scan_server(void);
esp_err_t rcs_send_to_bleserver(uint8_t equip_sn, uint8_t *package, uint16_t package_len);
void ble_mast_init(void);
void ble_remember_last_server(void);

